from GMM import utils
from GMM import plugins
import random

def effect(input, next, output, percentage):
    list_effect=plugins.get_child_plugins()
    list=[]
    for effect in list_effect:
        if effect!="none":
            if effect!="random":
                list.append([effect,list_effect[effect]])
    i=random.randint(0,len(list)-1)
    return list[i][1](input, next, output, percentage)